<!--
 * @Author: ChengNan 1429323234@qq.com
 * @Date: 2024-09-05 09:58:29
 * @LastEditors: ChengNan 1429323234@qq.com
 * @LastEditTime: 2024-09-05 10:02:15
 * @FilePath: /src/views/0.web-front/7天入门/3.style.html
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    h1{
      color: red;
    }
    .title {
      color: blue;
    }
    .title2 {
      color: #ffe100 !important;
    }
    #head {
      color: green;
    }
  </style>
</head>
<body>
  <div>
    <h1>你好，世界！</h1>
    <h1 class="title">你好，世界！</h1>
    <h1 class="title" id="head">你好，世界！</h1>
    <h1 class="title" id="head" style="color: purple;">你好，世界！</h1>
    <h1 class="title title2" id="head" style="color: purple;">你好，世界！</h1>
  </div>
</body>
</html>